package com.example.everying.service.user;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.everying.model.dto.user.UserPageDto;
import com.example.everying.model.entity.user.UserBalanceEntity;
import com.example.everying.model.entity.user.UserEntity;
import com.example.everying.utils.Result;

import java.math.BigDecimal;

public interface UserBalanceService extends IService<UserBalanceEntity> {
    UserBalanceEntity getBalanceByUserId(String userId);
    boolean deductBalance(String userId, BigDecimal amount);
    boolean addBalance(String userId, BigDecimal amount);



}
